<?php
require_once BASEPATH."application/news/models/News.php";

class News_FeedController extends Zend_Controller_Action
{

	/** public function init() {{{
	 *
	 *
	 */
	public function init()
	{
		$this->request = $this->getRequest()->getParams();
	}
	/*}}}*/

	/* public function AtomAction() {{{
	 *
	 *
	 */
	public function atomAction()
	{
		$this->_helper->viewRenderer->setNoRender();

		$news = new News();

		$this->getResponse()->setHeader('Content-Type', 'text/xml');
		$this->getResponse()->appendBody($news->getFeedAtom());
	}
	/*}}}*/

	/* public function RssAction() {{{{
	 *
	 *
	 */
	public function rssAction()
	{
		$this->_helper->viewRenderer->setNoRender();

		$news = new News();

		$this->getResponse()->setHeader('Content-Type', 'text/xml');
		$this->getResponse()->appendBody($news->getFeedRss());
	}
	/*}}}*/

}
?>
